package com.gnerv.sylvanas.business.manage.model.bo;

import com.gnerv.sylvanas.business.manage.model.entity.Config;
import lombok.Data;
import org.springframework.beans.BeanUtils;


/**
 * @author Gnerv LiGen
 */
@Data
public class ConfigBO {

    private String ukId;
    private String code;
    private String name;
    private String value;
    private String status;
    private Integer sort;

    public Config toConfig() {
        Config config = new Config();
        BeanUtils.copyProperties(this, config);
        config.setGmtCreate();
        config.setGmtModified();
        return config;
    }

}